<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style>
/* 全局样式 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* 主色调 */
  --primary: #00379E;
  --primary-dark: #0B9CBD;
  --secondary: #FF7A45;
  --secondary-dark: #D45600;
  --blue-900: #002A5B;
  --blue-800: #003F7D;
  --blue-700: #0054A1;
  
  /* 中性色 */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* 辅助色 */
  --success: #52C41A;
  --warning: #FAAD14;
  --error: #F5222D;
  --info: #1890FF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--gray-50);
  color: var(--gray-900);
  overflow-x: hidden;
  line-height: 1.6;
}

/* 全局背景效果 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 25% 25%, rgba(22, 194, 213, 0.03) 0%, transparent 20%),
    radial-gradient(circle at 75% 75%, rgba(255, 122, 69, 0.03) 0%, transparent 20%),
    radial-gradient(circle at 50% 50%, rgba(0, 42, 91, 0.02) 0%, transparent 30%);
  z-index: -1;
}

/* 全局容器样式 */
.page-wrapper {
  position: relative;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 移动端优化 */
@media (max-width: 767px) {
  body {
    font-size: 0.9rem;
  }
  
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
  }
  
  /* 防止移动端点击高亮 */
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  /* 优化表单元素在移动端的显示 */
  input, textarea, select, button {
    font-size: 1rem;
  }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* 动画效果 */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 194, 213, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(22, 194, 213, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 194, 213, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* 卡片动画 */
.card-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform, opacity;
}

.card-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 导航链接效果 */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* 渐变文字效果 */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(135deg, var(--primary), var(--blue-700));
}

/* 导航栏滚动样式 */
#navbar {
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 0.75rem 0;
}

/* 表单焦点样式 */
.form-focus {
  transition: all 0.3s ease;
}

.form-focus:focus {
  box-shadow: 0 0 0 3px rgba(22, 194, 213, 0.2);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* 按钮样式优化 */
button, a.btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

button:hover, a.btn:hover {
  transform: translateY(-2px);
}

button:active, a.btn:active {
  transform: translateY(0);
}

/* 主要按钮效果 */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 10px 20px rgba(22, 194, 213, 0.3);
}

/* 卡片悬停效果 */
.card-hover {
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 响应式设计 - 全局移动设备优化 */
@media (max-width: 768px) {
  /* 手机端基础字体大小调整 */
  html {
    font-size: 14px;
  }
  
  /* 调整标题字体大小 */
  h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  
  h2 {
    font-size: 1.75rem !important;
    line-height: 1.2 !important;
  }
  
  h3 {
    font-size: 1.5rem !important;
  }
  
  h4 {
    font-size: 1.25rem !important;
  }
  
  /* 调整容器间距 */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* 优化间距 */
  section {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
  
  /* 优化卡片布局 - 平板端调整为2列 */
  .md\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
  
  /* 优化按钮大小 */
  button, a {
    padding: 0.625rem 1.5rem !important;
    font-size: 0.95rem !important;
  }
  
  /* 优化导航栏在移动端的显示 */
  #navbar.scrolled {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  /* 优化移动端菜单动画 */
  .md\:hidden.bg-white\/95 {
    animation: slideDown 0.3s ease-out;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* 优化移动端轮播图控制按钮 */
  .carousel-container button {
    width: 40px;
    height: 40px;
  }
  
  /* 优化移动端职位卡片布局 */
  .job-card {
    padding: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  /* 更合理的基础字体大小 */
  html {
    font-size: 14px;
  }
  
  /* 合理的标题字体大小 */
  h1 {
    font-size: 2rem !important;
    line-height: 1.3 !important;
  }
  
  h2 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }
  
  h3 {
    font-size: 1.5rem !important;
  }
  
  h4 {
    font-size: 1.25rem !important;
  }
  
  /* 优化按钮和交互元素大小 - 保留一定的灵活性 */
  button, a {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.95rem !important;
    /* 移除强制100%宽度，让按钮根据内容自适应 */
  }
  
  /* 按钮组中的全宽按钮 */
  .button-group.full-width button,
  .button-group.full-width a {
    width: 100%;
    display: block;
    text-align: center;
  }
  
  /* 优化输入框大小 */
  input, textarea, select {
    font-size: 0.95rem !important;
    padding: 0.5rem 0.75rem !important;
  }
  
  /* 优化卡片间距和尺寸 */
  .grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* 优化服务卡片内部间距 */
  .bg-white.rounded-2xl {
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  /* 优化英雄区域内容 */
  section#home, section#culture {
    padding-top: 7rem !important;
    padding-bottom: 4rem !important;
    min-height: auto !important;
  }
  
  /* 优化其他section间距 */
  section {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
  
  /* 优化按钮组布局 */
  .flex.flex-wrap.justify-center {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .flex.flex-wrap.justify-center .gap-6,
  .flex.flex-wrap.justify-center > a {
    margin-bottom: 0 !important;
    width: 100%;
    max-width: 350px;
  }
  
  /* 优化职位卡片内部布局 */
  .flex.flex-col.md\:flex-row {
    flex-direction: column !important;
  }
  
  /* 优化职位卡片内的按钮位置 */
  .job-card .apply-btn {
    margin-top: 1rem !important;
    width: 100%;
  }
  
  /* 优化导航栏图标大小 - 更合理的尺寸 */
  .logo-img {
    height: 14px !important;
  }
  
  /* 轮播图样式恢复默认 */
  .carousel-slide img {
    max-height: 300px !important;
  }
  
  /* 优化装饰元素在手机上的显示 */
  section .absolute {
    display: none !important;
  }
  
  /* 优化表单间距 */
  form {
    gap: 1rem !important;
  }
  
  /* 优化标题和段落间距 */
  h1, h2, h3, h4 {
    margin-bottom: 1rem !important;
  }
  
  p {
    margin-bottom: 1rem !important;
    line-height: 1.6;
  }
  
  /* 合理的卡片之间的间距 */
  .space-y-8 {
    gap: 2rem !important;
  }
  
  /* 优化核心数据卡片布局 - 更合理的2列布局 */
  .grid.grid-cols-2.md\:grid-cols-4 {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }
  
  /* 优化核心数据卡片内部样式 */
  .grid.grid-cols-2.md\:grid-cols-4 > div {
    padding: 1rem !important;
    margin-bottom: 0 !important;
  }
  
  /* 优化核心数据卡片内的文字大小 */
  .grid.grid-cols-2.md\:grid-cols-4 > div .text-4xl {
    font-size: 1.75rem !important;
  }
  
  .grid.grid-cols-2.md\:grid-cols-4 > div .text-gray-600 {
    font-size: 0.9rem !important;
  }
  
  /* 其他网格布局保持单列 */
  .grid:not(.grid-cols-2.md\:grid-cols-4) {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* 其他网格项目的内边距 */
  .grid:not(.grid-cols-2.md\:grid-cols-4) > div {
    padding: 1.5rem !important;
    margin-bottom: 0 !important;
  }
  
  /* 合理的轮播图文字内容间距 */
  .carousel-slide .p-8 {
    padding: 2rem 1rem !important;
  }
  
  /* 优化标题与内容间距 */
  .mb-6, .mb-8 {
    margin-bottom: 1.5rem !important;
  }
  
  /* 优化页脚间距 */
  footer {
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* 优化页脚内部间距 */
  footer > div > div {
    padding: 1.5rem !important;
  }
  
  /* 增加整体容器的内边距 */
  .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  
  /* 优化导航栏在移动端的样式 */
  #navbar {
    padding: 1rem 0 !important;
  }
  
  /* 优化移动端菜单样式 */
  .md\:hidden.bg-white\/95 {
    padding: 1rem 0 !important;
  }
  
  /* 优化按钮组的间距 */
  .gap-6 {
    gap: 1rem !important;
  }
}

/* 职位卡片悬停效果 */
.job-card {
  transition: all 0.3s ease;
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.benefit-icon {
  transition: all 0.3s ease;
}

.benefit-icon:hover {
  transform: scale(1.1);
}
</style>